#include <stdio.h>
#include <windows.h>
#include <math.h>
void main()
{
	char ch1, ch2, ch3;
	ch1 = getchar();
	ch2 = getchar();
	ch3 = getchar();
	putchar(ch3); putchar(ch2); putchar(ch3);
	putchar('\n');
	system("pause");

}